package qnb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import qnb.dao.StudentDao;
import qnb.entity.Student;
import qnb.service.StudentService;

@Service
public class StudentServiceImpl implements StudentService {
	@Autowired
	StudentDao dao;
	@Override
	public int addStudent(Student stu) {

		return dao.addStudent(stu);
	}

	@Override
	public int updateStudent(int id) {
		// TODO Auto-generated method stub
		return dao.updateStudent(id);
	}

	@Override
	public int deleteStuent(int[] id) {
		// TODO Auto-generated method stub
		return dao.deleteStuent(id);
	}

	@Override
	public Student selectOne(int id) {
		// TODO Auto-generated method stub
		return dao.selectOne(id);
	}

	@Override
	public List<Student> selectPage(String stuName, int page, int pageSize) {
		// TODO Auto-generated method stub
		return dao.selectPage(stuName, page, pageSize);
	}

}
